package com.ruoyi.seedlingSys.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 温湿度管理对象 temperature_humidity
 * 
 * @author ruoyi
 * @date 2025-03-12
 */
public class TemperatureHumidity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 温湿度记录ID */
    private Long thId;

    /** 温度值(°C) */
    @Excel(name = "温度值(°C)")
    private BigDecimal temperature;

    /** 湿度值(%) */
    @Excel(name = "湿度值(%)")
    private BigDecimal humidity;

    /** 采集地址 */
    @Excel(name = "采集地址")
    private String collectionAddress;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectionTime;

    public void setThId(Long thId) 
    {
        this.thId = thId;
    }

    public Long getThId() 
    {
        return thId;
    }
    public void setTemperature(BigDecimal temperature) 
    {
        this.temperature = temperature;
    }

    public BigDecimal getTemperature() 
    {
        return temperature;
    }
    public void setHumidity(BigDecimal humidity) 
    {
        this.humidity = humidity;
    }

    public BigDecimal getHumidity() 
    {
        return humidity;
    }
    public void setCollectionAddress(String collectionAddress) 
    {
        this.collectionAddress = collectionAddress;
    }

    public String getCollectionAddress() 
    {
        return collectionAddress;
    }
    public void setCollectionTime(Date collectionTime) 
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime() 
    {
        return collectionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("thId", getThId())
            .append("temperature", getTemperature())
            .append("humidity", getHumidity())
            .append("collectionAddress", getCollectionAddress())
            .append("collectionTime", getCollectionTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
